﻿
set(NCTI_PROJECT ${NCTI_GMSH_PLUGIN})

#inc
include_directories(${INC_PATH_NCTI})
include_directories(${INC_PATH_GMSH})
include_directories(${INC_PATH_PYTHON})

FUN_FIND_ALL_HEADFILE_DIR(${NCTI_APPLICATION_DIR_NCTICAX_INC} ${NCTI_BASE})
FUN_FIND_ALL_HEADFILE_DIR(${NCTI_APPLICATION_DIR_NCTICAX_INC} ${NCTI_RENDER})
FUN_FIND_ALL_HEADFILE_DIR(${NCTI_APPLICATION_DIR_NCTICAX_INC} ${NCTI})
FUN_FIND_ALL_HEADFILE_DIR(${NCTI_APPLICATION_DIR_NCTICAX_INC} ${NCTI_PLUGINMANAGER})

FUN_FIND_ALL_HEADFILE_DIR(${NCTI_APPLICATION_DIR_NCTICAX_INC} ${NCTI_PLUGIN})
FUN_FIND_ALL_HEADFILE_DIR(${NCTI_APPLICATION_DIR_NCTICAX_INC} ${NCTI_GM_MODEL_FUNCTION})
FUN_FIND_ALL_HEADFILE_DIR(${NCTI_APPLICATION_DIR_NCTICAX_INC} ${NCTI_OBJECT})

FUN_FIND_ALL_HEADFILE_DIR(${CMAKE_CURRENT_SOURCE_DIR} "")
set(CMAKE_CXX_STANDARD 20)
file(GLOB_RECURSE project_cpps *.cpp *c *cc *h)
set(all_files_cpp ${project_cpps})
source_group_by_dir(all_files_cpp ${CMAKE_CURRENT_SOURCE_DIR})

#DLL library
add_library(${NCTI_PROJECT} 
  SHARED 
  ${CURCPPFILE_SDGM_CMAKE}
  ${all_files_cpp}
)

target_link_directories(${NCTI_PROJECT} PRIVATE
  ${LIB_PATH_NCTI}
  ${LIB_PATH_GMSH}
  ${LIB_PATH_OCC}
  ${LIB_PATH_PYTHON}
)

target_link_libraries(${NCTI_PROJECT}
${NCTI_RENDER} 
${NCTI_BASE} 
${NCTI_PLUGINMANAGER}
${NCTI}
${NCTI_PLUGIN}
${NCTI_GM_MODEL_FUNCTION}
${NCTI_OBJECT} 
gmsh)